<?php
class CakeMakeVo extends SzAbstractMySqlVo
{

    private $userId;
    private $position;
    private $type;
    private $state;
    private $makeTime;
    private $createTime;
    private $updateTime;

    /**
     * Initialize CakeMakeVo.
     *
     * @param $userId
     * @param $position
     * @param $type
     * @param $state
     * @param $makeTime
     * @param $createTime
     * @param $updateTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return CakeMakeVo
     */
    public function __construct($userId, $position, $type, $state, $makeTime, $createTime, $updateTime, $isInsert = false) {
        $this->userId = $userId;
        $this->position = $position;
        $this->type = $type;
        $this->state = $state;
        $this->makeTime = $makeTime;
        $this->createTime = $createTime;
        $this->updateTime = $updateTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'CakeMakeVo';
        $this->ormName = 'CakeMake';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'position' => $this->getPosition(),
            'type' => $this->getType(),
            'state' => $this->getState(),
            'makeTime' => $this->getMakeTime(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'position' => $this->getPosition(),
            'type' => $this->getType(),
            'state' => $this->getState(),
            'makeTime' => $this->getMakeTime(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getPosition(),
            $this->getType(),
            $this->getState(),
            $this->getMakeTime(),
            $this->getCreateTime(),
            $this->getUpdateTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getPosition()
    {
        return $this->position;
    }

    public function setPosition($val)
    {
        $this->saveColumnStatus(1, $this->position);
        $this->position = $val;
    }

    public function getType()
    {
        return $this->type;
    }

    public function setType($val)
    {
        $this->saveColumnStatus(2, $this->type);
        $this->type = $val;
    }

    public function getState()
    {
        return $this->state;
    }

    public function setState($val)
    {
        $this->saveColumnStatus(3, $this->state);
        $this->state = $val;
    }

    public function getMakeTime()
    {
        return $this->makeTime;
    }

    public function setMakeTime($val)
    {
        $this->saveColumnStatus(4, $this->makeTime);
        $this->makeTime = $val;
    }

    public function getCreateTime()
    {
        return $this->createTime;
    }

    public function setCreateTime($val)
    {
        $this->saveColumnStatus(5, $this->createTime);
        $this->createTime = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(6, $this->updateTime);
        $this->updateTime = $val;
    }

}